package com.gexiaobao.pigeon.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gexiaobao.pigeon.R
import com.gexiaobao.pigeon.app.model.bean.OrgDeviceInfoResponse

/**
 * @Author      : hxw
 * @Date        : 2023/3/4 11:16
 * @Describe    :
 */
class CodeAdapter(data: ArrayList<OrgDeviceInfoResponse.ListBean.InfoBean>) :
    BaseQuickAdapter<OrgDeviceInfoResponse.ListBean.InfoBean, BaseViewHolder>(R.layout.item_device_code, data) {

    override fun convert(holder: BaseViewHolder, item: OrgDeviceInfoResponse.ListBean.InfoBean) {
        holder.setText(R.id.tvDeviceCode, context.getString(R.string.device_code) + ": " + item.imsi)
    }
}